package cn.lili.modules.permission.client;


import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.permission.entity.vo.UserMenuVO;
import cn.lili.modules.permission.fallback.PermissionFallback;
import cn.lili.modules.promotion.fallback.CouponActivityFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 权限客户端
 *
 * @author liushuai(liushuai711 @ gmail.com)
 * @version v4.0
 * @Description:
 * @since 2022/8/31 14:51
 */
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.USER_SERVICE, contextId = "permission", fallback = PermissionFallback.class)
public interface PermissionClient {


    @GetMapping("/feign/permission/get")
    List<UserMenuVO> getUserPermission(@RequestParam String userId);

}
